<template>
	<view class="main">
		<view class="form">
			<view class="form-li flex-row">
				<view class="form-name">营业时间</view>
				<view class="input-box" @tap="openTime">
					<u--input placeholder="请选择"  :disabled="true" border="bottom"></u--input>
					<u-icon name="arrow-right"></u-icon>
				</view>

			</view>
			<view class="form-li flex-row">
				<view class="form-name">店铺描述</view>
				<view class="input-box">
					<u--textarea v-model="value" placeholder="请输入内容" class="StoreDis"></u--textarea>
					
				</view>

			</view>
			<view class="form-li">
				<view class="form-name">轮播图</view>
				<view class="input-box">
					<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
						:maxCount="10"></u-upload>
				</view>

			</view>
			<view class="form-li">
				<view class="form-name">详情图片</view>
				<view class="input-box">
					<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
						:maxCount="10"></u-upload>
				</view>

			</view>
			<view class="form-li">
				<view class="form-name">店铺视频</view>
				<view class="input-box">
					<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" accept="video"></u-upload>
				</view>

			</view>
		</view>
		<u-datetime-picker ref="datetimePicker" :show="showStar" v-model="starTime" mode="time" @confirm="sureTimeStar"></u-datetime-picker>
		<u-datetime-picker ref="datetimePicker1" :show="showEnd" v-model="endTime" mode="time" @confirm="sureTimeEnd"></u-datetime-picker>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showStar: false,
				showEnd:false,
				value: "",
				fileList1: [],
				starTime: "",
				endTime: ""
			}
		},
		onLoad() {

		},
		onShow() {

		},
		methods: {
			openTime() {
				this.showStar = true;
			},
			sureTimeStar(){
				this.showStar = false;
			},
			sureTimeEnd(){
				this.showEnd = false;
			}
		}
	}
</script>

<style lang="scss">
	.main {
		background-color: #f7f7f7;
		height: calc(100vh - 44px);
	}
	.form{
		margin-left: 30rpx;
		margin-right: 30rpx;
		background-color: #fff;
		.flex-row{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			.input-box{
				display: flex;
				flex-direction: row;
				justify-content: space-between;
			}
		}
		.form-li{
			border-bottom: 2rpx solid #F1F0F0;
			padding-top: 10rpx;
			padding-bottom: 10rpx;
			.StoreDis{
				width: 520rpx;
			}
		}
	}
</style>